import request from '@/utils/request'

// 查询自己的组员列表,如果不是组长，那么用组员查自己的组长，组长很多的话，那就是个list
export function getMyMembers(id) {
    return request({
        url: '/worklog/leaderAndMember/Memberids/' + id,
        method: 'get',
    })
}

export function getMyLeaders(id) {
    return request({
        url: '/worklog/leaderAndMember/leaderids/' + id,
        method: 'get',
    })
}

export function addMember(data) {
    return request({
        url: '/worklog/leaderAndMember/add',
        method: 'post',
        data: data
    })
}

export function deleteMember(data) {
    return request({
        url: '/worklog/leaderAndMember/delete',
        method: 'delete',
        data: data
    })
}

